angular.module('httpTest', [])
.controller('StorysCtrl', ['$scope', '$http', function ($scope, $http) {
	$scope.queryStory = function () {
		$http.get('http://localhost:3000/static/DB/story.json')
		.success(function (data, status, headers, config) {
			$scope.story = data;
		})
		.error(function (data, status, headers, config) {
			throw new Error('Something went wrong...');
		});
	};
}]);
